//package com.dsfa.wsServ;
//
//import com.dsfa.biz.busCenter.BusService;
//import com.dsfa.biz.dataCenter.DataCenterService;
//import com.dsfa.filter.WsOutInterceptor;
//import com.dsfa.filter.WsVerifyInInterceptor;
//import com.dsfa.platform.starter.redis.RedisExecute;
//import lombok.extern.slf4j.Slf4j;
//import org.apache.cxf.jaxws.EndpointImpl;
//import org.springframework.beans.factory.InitializingBean;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
///**
// * @Description: WebserviceConfig 可以使用，此方法放弃
// * @ClassName: StartWS
// * @Author: wangdm
// * @Date: 2024/1/14
// */
//
//@Slf4j
//@Component
//public class StartWS implements InitializingBean {
//    @Autowired
//    private BusService busServer;
//    @Autowired
//    private DataCenterService dataCenterService;
//    @Autowired
//    private RedisExecute redisExecute;
//    /*@Autowired
//    private Config config;*/
//
//    @Override
//    public void afterPropertiesSet() {
//        String preStr = "[StartWS] ";
//        log.info("{}Starting Server", preStr);
//        try {
//            //本程序webService服务地址
//            //String address = config.getAgentIpPort() + config.getAgentPath();
//            String address = "http://192.168.178.183:9998/ws/WSServer";
//            IWSServer is = new WSServerImpl();
//            EndpointImpl endpoint = new EndpointImpl(is);
//            endpoint.getInInterceptors().add(new WsVerifyInInterceptor(busServer, dataCenterService, redisExecute));
//            endpoint.getOutInterceptors().add(new WsOutInterceptor(dataCenterService));
//            endpoint.publish(address);
//
//            log.info("{}webService already！", preStr);
//        } catch (Exception e) {
//            log.info("{}start failed,system will exit,msg:{}", preStr, e.getMessage());
//            System.exit(0);
//        }
//    }
//}
